//
//  FQDArticleFeedBaseViewController.h
//  FakeQDaily
//
//  Created by mewxiv on 9/17/16.
//  Copyright © 2016 Xensius. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FQDFeedBaseViewController.h"
#import "FQDNavigationView.h"

@class FQDFeedCellItem;

typedef void(^FQDArticleFeedCellSelectionBlock)(UICollectionView *collectionView, NSIndexPath *indexPath, FQDFeedCellItem *cellItem);

@interface FQDArticleFeedBaseViewController : FQDFeedBaseViewController

// 是否隐藏导航条，默认为否
@property (nonatomic, assign) BOOL hidesNavigationView;
// 导航条
@property (nonatomic, strong) FQDNavigationView *navView;
// 选择单元格的回调Block，未指定时默认以文章详情界面打开（即用FQDArticleDetailViewController打开）
@property (nonatomic, copy) FQDArticleFeedCellSelectionBlock cellSelectionBlock;

- (void)setCellSelectionBlock:(FQDArticleFeedCellSelectionBlock)cellSelectionBlock;
// 根据cellItem类型展示不同的界面
- (void)presentCellItem:(FQDFeedCellItem *)cellItem atIndexPath:(NSIndexPath *)indexPath;

@end
